Clean up the code for the subimage extraction.
Rename functions and fix bugs.
Add unit tests for subimage extraction.
Rename `SubImage.hpp` as `Subimage.hpp`.
Merge pull request #134 from DO-CV/fix-issue-87

[MAINT] Add unit tests for subimage extraction.