Note: This feature is available only when App layout is applied.
Firstly. go to Product Layout > App layout
Scroll down to Color Swatch > Input the filter option you want to “Product options: Variant image“, for example, Color
And Save Settings.
Next, go to Settings > enable Show selected variant image
Click Save Settings and check the result