cleans styles and images