adds dynamic list of photos to photos and profile page