slightly better optional saving of images