I am trying to turn radio buttons to show images based off the label of the radio button input instead of using radio buttons.

I have to use only javascript for this and I am at a loss. Can anyone help me out.