Testing grayscale function