Ensure image cache is purged only once