cyto/fixed the cmyk format error and auto inferred the mime type for conversion from the pil image itself
