Currently the on every infinite scroll event, new data is fetched and stored in image state. But on Modal, we don't have something like infinite scroll event.
So on next button of the modal navigation which has index of images.length -1, the new images has to be loaded.
This feature is under P1 and needs discussion on implementation.