Switching to gm from imagemagick