Don't override the images array when approaching if you're already viewing the popup.