delete unusable images, update index