Assigning photos to users