imported tile rendering stuff from old repo
Merge pull request #1 from jbrosi/import-old-stuff

imported tile rendering stuff from old repo