How I can verify image in webUI using groovy

I would warn you that WebUI.verifyImagePresent() keyword wouldn’t work as you possibly expect it to. See the following post of mine:

I would recommend you not to use this keyword.