Double bits in a binary image