First step toward TGA loading/writing