Order of events and picture stimuli

Win 10
PsychoPy 3.1.2

Hello, I am working on an experiment which involves remembering a picture before solving a task, after each task there should be assessment of rightness of answer, and then the participant has to choose which of the pictures is the picture shown before the task.

I have two questions:

  1. How do I achieve that random picture shows before each task, then that the random task is given, and then that participant has to assess rightness of answer (for each individual task), and then chooses between different pictures, randomly selected, including the right answer? I am not sure how to make this order of events repeat for 20 tasks that I have (is the loop the answer?).

  2. When I uploaded pictures, there was a ‘‘PIXI representation of stimulus unavailable’’ shown to my participants online. How do I upload pictures on imagestim and what path should I put in order to avoid this error?