removes unused images, updates title