added (hidden) function binfun to discretize intersections into a binary pixel image