Added grayscale function