Use ImageMagic (convert) in order to flatten down the image
on a white background, e.g.

convert io.png -background white -flatten io.png