Dynamically sizes the canvas based on the source domNode