If you activate the _image_album_statistics_ plugin you can use `printLatestImages()` which prints the latest image(s) by ID (the order zenphoto recognized the images on the filesystem)
See the documentation for its parameters (https://docs.zenphoto.org/function-printLatestImages.html)
There are also the `printLatestImagesByDate()` and `printLatestImagesByMtime()` functions.