Adobe InDesign IS the program... HOWEVER.... ADOBE gives NO VALID INSTRUCTIONS on creating a link from your.... INFORMATION FILE (.txt), to the IMAGE FILES .jpg), AND ... how to BATCH MERGE THEM onto the document pages.
A company called, ANDROMEDA, made a plug-in YEARS AGO, however, they stopped supporting it because Yearbook and Church Directory companies want to have a MONOPOLY on creating those templates, and put pressure on them to stop making the plug-in available. THANK GOD!!! I Still have a working copy, but it ONLY works with CS1.
The Yearbook and Directory companies either, WILL NOT, sell you the plug-in, OR they will charge you $600 - $1,200 to license the software annually.
Most of these companies are just BIG RIP OFF ARTISTS.
That is why they went to subscription mode, rather than giving you a program that you can BUY ONE TIME, and use FOREVER.