Getting a taxonomy term's image URI

To get the URL of the first image in a taxonomy term's field_image field:

<?php
$target_id = \Drupal\taxonomy\Entity\Term::load($termId)->get('field_image')->getValue()[0]['target_id'];
$image= \Drupal\file\Entity\File::load($target_id);
$imageUrl = $image->url();