imageGallery delete image functionality