Added ability to maximize preview window.