How to open image in popup window?

Ok

I have used code of this post in some my other application but it is not working

When user click on button SHOW then popup window should open.