Fix problems with selections while multiple images are loaded

There may be more issues with active selections on multiple open images;
honestly, it's hard to test as there are so many possible ways to
address the issue.

Will update as necessary.