Added support for NChannelImage pattern and ExtendToNChannel patterngene...

NChannelImage and ExtendToNChannel.

These should be pretty straightforward, and are quite self-contained.