fixes to NChannelImage