I’ve just had to do the same thing displaying the image url and this is how IO did it…
<?php if(get_field('cat_image', 'category_'. the_category_ID( $echo ) .'')) { ?>
<?php the_field('cat_image', 'category_'. the_category_ID( $echo ) .''); ?>
<?php endif; ?>
This worked for me.