Hello Amra_Feta,
do you build your experiment with the Builder of PsychoPy or with the Coder of PsychoPy. It looks like your are mixing the two approaches to build an experiment in PsychoPy.
There is, for instance, no need to load libraries when using the Builder. It should be avoided if you want to run the experiment online. The Builder adds libraries which are compatible for online use. random is among them.
Also, you seem to need two independent randomization, one for image_stim, the othe for position_stim. You might want to take a look here.
Best wishes Jens