delete images that not necessary