First version of texture class.