Fixed the bug where garbage data appeared in the incoming drawing array. Also cleaned up some silly and unnecessary pointers to pointers, and stopped casting gpointers so much.