Minor improvement on JpegReader