Fixed searchImage Function