move imagemagick installation in install_tools