Simplified version of led-image-viewer.cc

Ive got the led-image-viewer.cc (in utils) working fine and really happy with it. However, my C++ isnt great and having had a look through the code, its a complex program as seems to cover a lot of eventualites and options. Its also really useful as Id like to use the options contained with it!

Id like for it to just periodically (every second or so), look in a text file and then display the image filename displayed in that text file. Sounds simple? Is there a simple modification I can do to accomplish this? At the moment, this needs to be done in the command line.

there may not be anyone to offer support for this, sorry.
If it were me, I would have a shell script that starts the led viewer with the right image every second. hopefully there won’t be too much flickering in between