implemented locate for a singel image