Fixing rotation problem

I am using the standard source code from the Glyph Recognition Proto v.2.0.1 and I am witnessing a small anomaly. When processing this image it results to this.
I first thought it could have something to do with a database which I hadn’t created yet, but when I printed the output it somehow is translated to this
0 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 0 0
0 0 0 1 1 1 1 1 0
0 0 1 1 1 1 1 1 0
0 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 0
0 0 0 1 1 1 1 1 0
0 0 0 0 1 1 1 0 0
0 0 0 0 0 0 0 0 0
While the output where the letters are upright are formatted like this. (turned 90 degrees to the left)
0 0 0 0 0 0 0 0 0
0 0 1 1 0 1 1 0 0
0 1 1 1 1 1 1 1 0
0 1 1 1 1 1 1 1 0
0 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 0 0
0 0 0 1 1 1 0 0 0
0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0
I am trying to make sense whether this is something that I can fix within the source code or if anyone has ever come across this problem. I haven’t made any major changes to the source code, not ones that could cause this problem. I would very much appreciate your input so please let me know if something comes to mind.
Kind regards, Maarten Witteveen
I first thought it could have something to do with a database which I hadn’t created yet, but when I printed the output it somehow is translated to this
0 0 0 0 0 0 0 0 0
0 0 0 0 1 1 1 0 0
0 0 0 1 1 1 1 1 0
0 0 1 1 1 1 1 1 0
0 1 1 1 1 1 1 0 0
0 0 1 1 1 1 1 1 0
0 0 0 1 1 1 1 1 0
0 0 0 0 1 1 1 0 0
0 0 0 0 0 0 0 0 0
While the output where the letters are upright are formatted like this. (turned 90 degrees to the left)
0 0 0 0 0 0 0 0 0
0 0 1 1 0 1 1 0 0
0 1 1 1 1 1 1 1 0
0 1 1 1 1 1 1 1 0
0 1 1 1 1 1 1 1 0
0 0 1 1 1 1 1 0 0
0 0 0 1 1 1 0 0 0
0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0
I am trying to make sense whether this is something that I can fix within the source code or if anyone has ever come across this problem. I haven’t made any major changes to the source code, not ones that could cause this problem. I would very much appreciate your input so please let me know if something comes to mind.
Kind regards, Maarten Witteveen