Randomly displaying an image within a loop

Thanks for your reply! I think that makes sense, but that’s exactly what I’m having trouble with - how do I define the conditions within code? I know how to randomise things like location, because then I’m referring to something within psychopy, like “[0.5, 0]”
but how do I refer to “image.png” in a way that psychopy will understand?