Added save method for images.