Added sizeToScene and removed fixed pixel size of window.