replace qrcode canvas with img for easier user interaction