Image viewer checks for window.opener before refreshThumbnails