Clicked Pixels of Stimuli

Hi everyone. I’m new to PsychoPy and coding and was hoping somebody could help me with the below? Thanks.

OS (e.g. Win10):

PsychoPy version (e.g. 1.84.x):

Standard Standalone? (y/n) If not then what?:

What are you trying to achieve?:
I am setting up a Change Blindness task and have the locations of each target relative to the pixels in the image. When I saved the mouse data for the experiment, it gives me negative values. Is there a way to have PsychoPy record what pixels were clicked within each image?

What did you try to make it work?:
I have tried to find solutions on here and Google but I can’t seem to find any information about it.

What specifically went wrong when you tried that?:
I get the mouse X,Y positions which I believe are based from the centre of the screen?

Are all of your images the same size?

If your regions of interest are positions relative to the top left then you could convert the mouse coordinates using something like.

mouseX = images.size[0]/2 + mouse.getPos()[0]

mouseY = images.size[1]/2 - mouse.getPos()[1]