Working Subsampling support at the JpegImage API level.