fixed alpha bug in stretchPalette