Added support for NChannelImage pattern and ExtendToNChannel patterngenerator