upgrade setCanvas function
add ngon