new tga file routine