title: Finding most common color of an image
body: <p>I have a bunch of products on a page that have 200x200 images.  My first run at this was to get the data for each pixel (nested for loop, one for x, one for y), then convert rgb to hex, and store them in an array and then get the most frequent one. This script needs to run on 96 items per page at a time.</p>
  
  <p>Currently, it creates a canvas and puts the product image in that canvas and then performs the above operations.</p>
  
  <p>Is there some kind of averaging algorithm that would make this faster?</p>