Hey Najib,
I’ve attached an example experiment that displays a set of 10 images in random order. Each image is displayed for 100ms, with a 100ms gap between images. Only one image is loaded at any given time; the first image is pre-loaded at the start of the trial, and subsequent images are loaded during the inter-image gap. If 100ms passes before the image load completes, an error is reported. (Alternatively, you could modify the experiment to go to an “image load timeout” state.)
Each image is accepted or rejected based on whether fixation was broken (determined by a random draw for demonstration purposes). The state system loops until all images have been accepted.
Assuming your images can be loaded in less than 100ms, you should be able to adapt this approach to your current experiment. This will eliminate the need to pre-load multiple images at the start of each trial.
Please let me know how this works for you.
Chris