Implement custom greyscale transform