Set image-ratio if it is 1.
Provide default value for ratio
Merge pull request #2 from vkorchagin/master

Improvements for small images (ratio == 1)