added cmyk jpeg support