changed controller logic on photos to only have one profile picture