add user_id to photos