Removing unnecessary images.