Improved handling of some textures (mainly the 3dfe_beams model)