upload photos: more implementation