minimal improvement
added Color class
using Color class in ImagePalette, lots of improvements