created class to manage textures