Grayscale conversion implemented.