Add conditional install for imagemagick