Better palette transformations for bpx tags