How do I make one Product Image render at different sizes depending on variant?

Regular variants do not work for my client. Not all sizes come in all frame options. Moreover, their product are limited editions - there are only 30 available independent of size. The regular variants do not allow for this.
But even if I would go for regular product variants - I think that still wouldn’t solve the issue?
If you look at the example I sent you can see in the code that there is one single product image for the main product, that renders at different sizes, depending on the size. Also, there is separate div that holds the frame image (that varies based on size and frame color), and the photograph is in another div > layered on top and fitting in perfectly.