Removed some test code in Texture