Avoid to install the tests directory.

- with find_packages, the tests directory was installed as an independent
  package
- replace nose with pytest
Don't enlarge images if smaller than the dimensions