allow rounded corners.

make canvas width a global var