better qrcode managing when they are both images in header and document