Fix image find condition