Move imagemagic installation to the top.