Encode image with QR code.