So I need this script to show the players image

if script.Parent.Visible == true then
	script.Parent.Image = "http://www.roblox.com/Thumbs/Avatar.ashx?x=500&y=500&Format=Png&username=" ..game.Players.LocalPlayer.Name
end

But when I try it it only shows "N/A"?

I wonder if this is deprecated but I don't know.