I don’t have an exact answer, but I was running into a similar issue with an experiment that worked fine a few weeks ago (although the error I got today was: AttributeError: Couldn’t make sense of requested image.)
I found this solution worked for me:
This part in particular: low_files = [str(i) +'_low.jpg' for i in range(32)]