add foreground/background param for qrcode