cherry picked 76f9706 from OIIO master to fix TGA channel bug