TGA Loader - more error checking