palette editing implemented