Fixed mechanism for getting image orientation.