Variant.image.src returning multiple sources

I am still having an issue pulling the variation image. When I use the following code to find the matching variation.image.src for the option.value.

{% for value in option.values %}
{% for variant in product.variants %}
{% assign variant_title_split = variant.title | split: " / " %}
{% for option_value in variant_title_split  %}
{% if value == option_value %}
{{ variant.image.src }}
{% endif %}
{% endfor %}
{% endfor %}
{% endfor %}

If the variation is available in 2 lengths, it will print the variant.image.src twice. If it is available in 3, it will print it 3 times:

products/m3-6_clipin.png
products/m3-6_clipin.png

or if 3:

products/m3-6_clipin.png
products/m3-6_clipin.png
products/m3-6_clipin.png

I have tried turning variant.image.src into an array and using UNIQ, FRIST, LAST, and all types of iteration and filters. I cannot find anything to get this to work. Any help would be appreciated.

Hello @SomeUsernameHe

Could you try with variant.image?

Or variant.featured_image?

Regards

I could, the main issue I am having is matching the variant.image to the corresponding VALUE in:

value in option.values