mechanism to recognize an image