a first simple 'save image' implementation