added forgotten emms() - fix various segmentation faults when using mjpeg