Make createPalette accessible via module

Just like getDominanteColor