Encode png for swfmill bitmap formats.