We in zoom to display a single image, ensure that the selection is updat...

...ed.

Not doing that we will keep the last selected image into the selected_images
table and the remove/delete operations will not operate on the currently
displayed image.

For #9431.

To be tested a bit more but I believe this fixes the #9431 issue.