Filling-in Gaps in Textured Images Using Bit-Plane Statistics