imagepalette Extracts a color palette from an image. Based on this tutorial by Zygimantas Sniurevicius