directly write textures into a WAD file