Bugzilla#52089: Allow JPEG images to be embedded in an AFP document as is, without being decoded and encoded. It also allows lossy JPEG compression. Patch by Jeremias Maerki and Mehdi Houshmand.