removing the images not used