QR Code generation: fix the qr code re-sizing when it was re-created