Added 'convert to grayscale' and 'save' functionality to the Image class.