renaming the images could be done automatically just before running the app.
you could add this script to the beginning of the start.sh
for example like this: it could check all the folders inside Gallery and search for a 0.jpg. then it could execute the renamer for the folders that does not contain 0.jpg.

just an idea