Generalizing pterk's ZeroDivisionError fix for 1px images
Merge pull request #267 from chrispbailey/master

Better fix for ZeroDivisionError in ImageOps.fit for image.size height is 1