Bugfix for ICC color profile parsing in JPEG images. Ported detection code for CMYK JPEG images generated by Adobe Photoshop from maintenance branch. Adobe inverts CMYK images. Reenabled ICC color profile embedding for PDF.