add save-to-image utility