public void SetPal(Palette p) { pal = p; }
public void SetImage(byte[] img, int[] p) { RepackImage(img, img.Length); pal = new Palette(p); }