Reset the library state when the images are removed