Bug fix for deleting the image in the image view after mosaic view is closed.