Optimize TGA file loader
5% faster, privatize not needed functions, and massive clean up.