Adding function to read and save an image.
Adding function to resize image.