implemented export and proper new image
resolved issue with WindowManager not giving up dead windows