Fix index ordering. Fix tga data setting.
update