Remove unused media, reduce overall size of the cached image.