Implement bg paletting