Debug views now close properly when main window is closed
Poped debug views now show images as soon as they appear
Fixed a bug where the main window sometimes would lose track of its debug views