If image is disabled then it should be displayed in click event and vice versa without conditons

Hi Everyone,

Good day!

I need to display the image if its disabled and disable if its enabled while clicking the button.But no if conditions used.How to do that.Please help me out.

Thanks in advance