Use blanks as reference dimension for realignment
Closes #393 (closed) (again)
This MR:
- Generates the blanks before processing a page and uses the blank dimensions as reference when .realigning/resizing.
- Rewrites most of the tests in
test_scans.py
. The pipeline tests now have a properly structured temporary data directory.