Suggestions: Using 2.0 to only display product images that belong to variant

Hi all, I’m looking for suggestions on the process to only display the product images on the variant you’ve selected. Prior to 2.0, many site owners used ‘Coding With Jan’s’ very useful instruction, but with the changes now in place, it’s no longer of use. If you have a process or solution you’d like to share, please drop it in the comments below.