Implement functionality to add a photo to a gallery