A small JavaScript library for calculating the average color of an image in the browser