polygon drawn to canvas