added deleting of uploaded photos