Thank you for your answer and for running the code!
I think the images are somehow the problem… I’ll test more, if I find the error I’ll post it!
Just to be sure does the amount of images i have in the folder matter?