fix 5671,  5569

enabled close handlers to deal with image files and custom viewers
[preview image] Image not closed with File > Close
[preview image] Still showing the image from prior project after opening a new project. medium priority fix in progress