Implemented simple texture manager, texture mapping basically works now, some visual glitches remain.