The delete button changes the currentIndex to something else when deleting the current image but that didn't update cfg_Image. Just listen to when we become current. Might also fix keyboard navigation (didn't test if that worked before but it certainly does now).
BUG: 388805