Delete unused photos in upload_picture()