Update TextureManager.pm

rewrote work with relative/absolute path