I have found yet another package for the photo names:
https://crates.io/crates/block-id
With that, shorter IDs can be generated, looking almost like those, that YouTube has:
Example: bTA1qLWh.jpg
I am currently renaming photos with these IDs as filename, based on the Time and Date of creation in the database. That will take some time.