...To correct the rotation again, the value of the rotation is stored in the metadata. If this value is ignored by the image viewer, the image will be displayed incorrectly.
How does ImageBox normalize the rotation?
When an image is loaded by the ImageBox, it is automatically rotated. The rotation is removed from the metadata and its value applied to the image data. After the image has been saved, it will also display correctly on systems that ignore the metadata.