grayscale support, cleaning up