implement optimized greyscale control