Purge cache when changing images.