Class to create Palette from Image
More refactoring...