Error: join() argument must be str, bytes, or os.PathLike object, not 'ImageStim'

OS (e.g. Win10): macOS Ventura 13.5
PsychoPy version (e.g. 1.84.x): 2023.2.3
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?: I would like to present image pairs side by side. The images are drawn from a csv including the image filenames (eg. a.jpg b.jpg) from columns titled rightSide and leftSide.

What did you try to make it work?: I have used $os.path.join(‘stim/’,rightSide) and $os.path.join(‘stim/’,leftSide) under the “Image” section of each image component. The image files are stored in a folder called “stim” and the exact image file names are listed in the csv.

What specifically went wrong when you tried that?:
I got the error message: join() argument must be str, bytes, or os.PathLike object, not ‘ImageStim’ I had this exact task set up on a different computer with PsychoPy 2023.2.2 and it works just fine; I tried running the task on my current computer and switching the PsychoPy version to match, but I received the same error message.