Image is loaded with width as height and height as width

I am trying to load an image taken in portrait by the device’s camera to screen (android).

It works on an android moto-G device, but on Nexus 10 it confuses the width with the height.

So on the moto-G if it is taken landscape, corona considers it landscape, and if portrait, then portrait.

But on Nexus 10, if taken landscape, then fine. but if taken portrait, corona treats it as landscape, stretching the image out to the width (which should have been the height) and shrinking the height (to what should be the width) - hope that makes sense.

I’m thinking the orientation of an image is somehow stored in the file as meta data, but either the Nexus 10 is not storing it, or it is storing it in a way Corona cannot read.

Any ideas? 

If this is a problem exclusive to a Nexus 10, I don’t care, but what if there are many other devices working this way?

(I should mention, it works on the simulator, if I copy the problem image into the simulator sandbox and load it, but I think that is not a good test, because Windows might be introducing some meta data when the image is copied from the device to the windows file system.)