creation of texture class