make texture a class