fixed tga dimension reading.