Fixed bug that caused the open file dialog for selecting images to disappear and essentially deadlock the whole application.