Added support for reading and displaying RGB images as grayscale