Hi @maxis,
Well, to get ACF values associated with a particular term, you have to pass an extra argument to the_field(...)
or get_field(...)
method to target the term ID. This argument can either be a term object or a term string as explained in the docs. The following code should work for you:
foreach($categories as $category):
...
$image = get_image('image_field_name', $category);
echo '<img src="'.$image['url'].'" alt="'.$image['alt'].'" />';
endforeach;