avutil/imgutils: remove special case for aligning the palette