* Added a reset method to allow subsequent scans after the first
* Layout mode detection and automatic rotation of the scan view
  by the proper angle