mostly working. starts at [0 0], writes to /tmp/maze.png. needs quite a lot of refactoring.