added delete functionality to uploaded images