CMYK support (thanks @megabuz for original patch)

This is not finished yet because of ICC profile issues