Minimal tga loader without need for 3rd party libraries