add cmyk color space support to as_PIL function