Added support for multiple mesh modes.

Added demo 6 to showcase the different modes.
Cleared up some coordinate logic (tile 0,0 should be in the lower left).