Added a texture coordinate lookup function.
Texture mapping has been integrated into the image thing. Mostly.