Fix TGA parsing.