Resize images with imagemagick and minimagick