fixed flawed TGA reading.