Finishing touches on textureloader.

Tested and polished. Approved by project leader.