HtmlElementCollection theElementCollection;
theElementCollection = web1.Document.GetElementsByTagName("img");
foreach (HtmlElement curElement in theElementCollection)
{
if (curElement.GetAttribute("src").ToString().Contains(@"http://website.com/avatars"))
{
pictureBox1.ImageLocation = curElement.GetAttribute("src").ToString();
}
}