Add support for dynamic height and width using window.postMessage