Hi,
Very happy to share!
I have just cleaned up the code, so it should be commented and hopefully understandable, let me know if anything doesn’t make sense through.
Repository here - https://github.com/jamesbrandscience/Image_change_psychopy
Just click the ‘clone or download’ button and ‘download ZIP’
James