More code in LoadMapFromTexture, not working.
Merge branch 'WilliamBranch'