fixed grayscale JPEG