Scale image to window width or height.

Signed-off-by: Michael Markert <markert.michael@googlemail.com>
Fix condition for rescaling images.

Previous condition would have ignored non existing imagemagick support.

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

Scale image to window width or height.

Thanks cofi for contributing!