8 – Use an image field in an entity query condition

How to use an image field in a condition of an entity query?

To get X nodes that do not have image as field_image value, I've already tried this:

$ nids =  Drupal :: entityQuery (& # 39; node)
-> condition (& # 39; type & # 39;, & # 39; X & # 39;)
-> condition (& # 39; field_image & # 39; NULL, & # 39; = & # 39;)
-> execute ();

it does not work, I always have an empty result.