Only rescale an image if either dimension is smaller than window.

Signed-off-by: Michael Markert <markert.michael@googlemail.com>
Don't resize animated images.

Signed-off-by: Michael Markert <markert.michael@googlemail.com>
Merge pull request #7 from cofi/fix-rescale

Only rescale an image if either dimension is smaller than window.