Merged CMYK and Multichannel logic

Merged CMYK and Multichannel logic
Added 16-bit depth support