get_pallet Saves pallet colours from an image to an array Processing Code borrowed from j.tarbell http:https://www.complexification.net/gallery/machines/substrate/index.php