add function for canvas to stk-tool