fixed greyscale module in image processing