Packing and Filling_Palette handling