Gets rid of redundant textures