<input type="radio" name="img">
<input type="radio" name="img">
<input type="radio" name="img">
<img src="" alt="картинка">
<script>
var arrImg = [
'https://javascript.ru/forum/image.php?u=7416&dateline=1372796129',
'https://javascript.ru/forum/images/ca_serenity/misc/logo.gif',
'https://javascript.ru/forum/images/smilies/dance3.gif'
];
document.querySelectorAll('[name="img"]').forEach((el,i)=>el.onchange = e => {
if(el.checked) document.querySelector("img").src = arrImg[i];
});
</script>