Added support for NChannelImage and ExtendToNChannel


Sorry for all the previous open/close pull requests. This is the only merge to look at.

I hope this isn't being used (i.e. this should be removed) otherwise there are bigger problems to worry about!