Revert changes to Texture.js, correctly this time.