greyscaling functionality added