Basic version of drawing. Source from http://tutorialzine.com/2012/08/nodejs-drawing-game/