I assume there's a bit more to it, but QR codes inherently support a "mask" that tells the scanner parts of the image to ignore. So you could do at least some of that with the mask. It's not real flexible, so there's perhaps other tricks also.
Wikipedia has a pretty good visual of this. https://en.m.wikipedia.org/wiki/QR_code#Encoding