making imagemagick work