Without the full DOM structure, I would guess by the UI:
Probably there is a root where the two button elements derive uniquely.
Some common node └── ├── Image Node ├── Image tag └── Button tag ├── QR Code Node ├── QR Code tag └── Button tag
So, if you want to reach the image input, your css selector is .css_class_of_the_image_node input. If you want to reach the image input, your css selector is .css_class_of_the_QR_code_node input.