How to change picture on p5

Hi, I’m looking for how just mouse click once time and the load picture will change to another change picture as well as never change.

You can reassign the image reference on mouse click.