Removes unused images