Averaging channels: images with only one channel are just returned