Fix for tga loading. Apparently DevIL does not check image orientation, so tga files have to be inverted depending on the header