When going back from the darkroom, ensure the last edited image is displ...

...ayed.

Fixes #9705.