A packing tool for 1-bit images