On your phone, every picture is taken in the same orientation, no matter how the phone is held. In your case, the picture was captured by the camera upside-down like this. (Whichever side of the phone you had up is "down" to the camera.)
However, when it takes the picture, your Camera app adds a tag indicating which side is supposed to be up. Most modern software (including your Gallery app, for example), sees the tag and rotates the picture accordingly.
Unfortunately, the board's image software ignores the tag and displays the image the way it was taken.