add new images and cleanup the index