ACF – get custom taxonomy term image field

I did it by this example:

https://support.advancedcustomfields.com/forums/topic/loop-to-display-acf-image-of-taxonomy-term/

<?php       
$terms = get_terms( array( 'taxonomy' => 'sluzba', 'hide_empty' => false ) );

foreach ( $terms as $term ) : 
    $term_image = get_field( 'tax_image', 'sluzba_' . $term->term_id ); ?>

    <div class="col-lg-4 col-md-6">
        <div class="product product-zoom product--card">
            <div class="product__thumbnail">

                <?php if ( $term_image ) : ?>

                    <img src="<?php echo $term_image['url']; ?>" alt="Služba <?php echo $term->name; ?>">

                <?php endif; ?>

            </div>

            <div class="product-desc">
                <h4 class="text-center mb-2"><?php echo $term->name; ?></h4>
            </div>
        </div>
    </div>              

<?php
endforeach
?>