added ability to save image