A little cleanup

* Moved getBoundingRect() function out of main
* Added a few vertical images options to test and make layout stand