Javascript lib to calculate hsl color values in parts of an image