Detect image inside webview

hi i have a webview app . in the website the images is opened in same pages
so webview cannot detect the image like a new page
so when image opened in webview . back button not working because he thinking is no any page opened . please help to detect image or somethink like that