change gm to use imagemagick