Added grayscale image and bmp capabilities.