Make the QRCode Factory configurable with TWO_FACTOR_QR_FACTORY.

This allows users with PIL/Pillow or pyimaging installed to generate PNG images instead.