Use info.ElementNumberOfChannels while reading image data.