make canvas size configurable