completed Texture class for texture mapping