Access the currently open image in the UV editor

Hi all,

I’m trying to write a script that modifies the pixels of the currently active image in the UV editor.
I know I can access the images using[‘image name’].
But I couldn’t find a way to know which one is selected in the UV editor.

Does anyone know how to do it?