made it so that the photo collection view updates when it receives photo data