I used your code for the following experiment:
[url removed, login to view]~himpatel/iat/go/
There are two target concepts: humanoid robot (10 photos) and mechanical robot (10 photos)
There are two attributes: warm (5 words) and cold (5 words)
Every photo appears once and every word twice in random order.
I would like the code to be modified as follows: the words and images should be interleaved (e.g., word, image, word, image...). So the order of the words and images is still random but interleaved.