made an upload photo function and a delete photo function