Added support for NChannelImage and ExtendToNChannel