add ability to save the image.