removing unneccessary images.