Add imagemagick to mainpackages