Roblox Headshot Image JS

var demo = document.getElementById('img-demo');
var userId = 1; // roblox's userId

demo.src = "https://www.roblox.com/headshot-thumbnail/image?userId=" + userId + "&width=420&height=420&format=png";
RashidYT