made the canvas size configurable