Remove obsolete images.