More work on graphics stuff. Unfinished.
Rendering is mostly working. Tiling is also working.