store badge image by id, not name.