Added framework for greyscale manipulation