some more work on saving photos