removed unwanted matte color when resizing palette images