PIL: convert palette to RGBA before resize()