Add Variant Image Source to radio input data attribute

I am trying to add the the image url as a data attribute so that I can use it for Java Script, however it the data it gives me is not the variant image url. In the below code you would be looking at where it says ‘data-image-url’, I would apprecaite any help.