colorspace: store nchannels rather than computing it every time
comments