Clean up implementation.
Add unit tests for orientation computation.
Merge pull request #136 from DO-CV/maint-test-image-orientation

[MAINT] Add unit test for the computation of orientations.