Resize images correctly with imagemagick.