added ability to save a single image