loading textures now working on 32bit and 64bit systems