Even more code in LoadMapFromTexture. Still not working.
Merge branch 'WilliamBranch'