- code cleanup
- code cleanup
- code cleanup
- be more careful when rounding zoom factors when calculating zoom from
  extent and image size