Support deleting images without screwing up the cache