Function registerDrawingTool