Draw a line when a user drags a pen on the canvas