Failing early while loading bad TGA file