added CMYK/YCCK support for JPGs (#1731)