fixed query to set precincts with no image to 0