<pre>The jpeg.Encode function always writes YCbCr JPEGs, even if the source image is grayscale.</pre>