Fixed Lua bindings of texture module.