more work on upload of photos