Unable to retrieve image when image name is code generated

Hi, thanks for the quick reply. The resources seem to be uploaded to the Pavlovia server already though. My programme runs perfectly when I type the file path “images/test_p2.jpeg” directly instead of the variable $positive[snapshot.thisN]

Is it necessary to add this code for downloading resources? If so, which portion of the code from here should I add?