Temporary fix to avoid slow YUV to JPEG conversion