Modified the way that graphing and drawing work; prevents flickering (closes #13), and also prevents loc from erasing lines (closes #5)