Removing unecessary images.