added delete functionality for gallery images