Remove unnecessary images.