Get a color palette of an image in the DOM