Texture Synthesis for Digital Restoration in the Bit-Plane Representation