Fix tga support with demoavi

Merge crizis' commit from Warsow repo