Image swatch

cwicly have image swatch, but just suit for material…

but, for the shop, same option have different image for the different product,

how to achieve this: