Tolerance for image aspect ratio

Instead of rejecting an image whose aspect ratio is not exact, accept it if it is within 1% of the desired ratio.

Mostly the work of Monseigneur @robertberry 
![cat](https://cloud.githubusercontent.com/assets/1001642/5185608/879b842c-74b8-11e4-8e3b-9668fe0c949c.gif)