Adding some basic 2d drawing functionality with tons of hacking.