How do I replace the color of a color swatch with an image? (Prestige theme)

Hi, I’m using the prestige theme and I want to replace the background color of the color swatches with images of the variants of the product.

So instead of those plain colors, I’d like pictures of the variants of the product to be displayed.

I’ve been searching on the ‘product-form.liquid’ file, but I haven’t been able to find the peace of code that inserts those plain colors.

I’m using the prestige theme, but haven’t been able to do it.
How do I do it? Thanks beforehand.