add support for grayscale