Add a code component that says something like this and place it into your image trial:
In the begin experiment tab:
myCounter = 0 #set the counter to 0
In the begin routine tab
myCounter = myCounter + 1
if myCounter >= 10:
currentLoop.finished = True #after 10 images are presented stop the loop
tandy