Orientation of uploaded images

We have an obs template with a variable for uploading an image (the concept in OpenMRS has class: image). When we upload images using a computer (chrome, safari, firefox) Bahmni is sometimes automatically rotating portrait images to landscape. Is there a way to control this behaviour in json configuration? Or is there a workaround?

The issue doesn’t appear to occur on tablet devices. This is on endTB 1.5.1 with the base version of Bahmni being the version that is deployed with endTB1.5.1