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

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.