Attach a picture or take a picture generico

Hello greetings.

I have a flow in which I must attach an image. This image can be either selected from the gallery or take a photo.

If I decide to take a photo, I see that there are several ways to do it but that depend on id`s or commands that depend on the manufacturer, this option does not help me since I run the tests in aws farm and I do not know in which device the tests will be done.

Attaching an image, asks me to select an application to open the gallery, example I get gallery and photos from google. I think these options also change between manufacturers, which would also be a problem.

Do you know how to attach a photo or take a generic photo that does not present the inconveniences I describe?