remove unused styles and images