removing unnecessary images.