HTML5: WhiteboardLineModel working for line and pencil tools