a test that fails for images with integer resolution
allow integer image resolution as well as rational
add assert to test
Merge pull request #213 from mattip/master

add tests and fix for issue 212