added user_id to photo model