fixed upload, added delete photos functionality