try converting badge to a data URL on export.