Option for auto size and resize of canvas. Fixed #21