Added convenience method for generating grayscale image from image