mjpegenc: write the JFIF header if the sample aspect ratio is set