Preliminary texture system
Compile-time bugs fixed