Implement texture mapping

And remove dead / deprecated code.
YAY FOR DOGE!

Signed-off-by: Piotr Bocheński <bochenski.piotr@gmail.com>