avutil/imgutils: only align the palette in av_image_copy_to_buffer() if there is...