@rb said

I had to add the middle line/check:

Sorry, shame on me. I'm always in a hurry and I never do enough testing of different cases. You can call me an amateur.

Ok it was the path again but it makes no sense to me …

No idea, don't forget that the code which loads the images is unknown because belonging to Pythonista it-self.