Is there any way to create a pop up in report

Hi, I want to create a button, then when I click to that button a pop up (actually an image) will appear in the screen, if I continue click that button again, the pop up will disappear. In other words, it is a button which have function to show/hide an image.

I have found some solution from community visualization but does it have any risks when use solution from third party?

Can you give me some solutions to implement that button. Thank you very much!