Add function for deleting images from gallery