remove images and index