Integrate main window with camera