adjusted order of photo operation on create photo