Add methods for converting quads containing digits to rects.