added the convert to grayscale functionality
added new feature convert to grayscale