using imagemagick to get dominant colour server-side