only re-render badge image when we know its appearance will change.