Fix imagemagick installation