Fix settings for chroma and luma planes in JPEG encoder.