private Image getImage(string url){Image im = null;try{ HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url);request.Method = "GET";request.Timeout = 15000;request.ProtocolVersion = HttpVersion.Version11;using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()){using (Stream responseStream = response.GetResponseStream()){ im = Image.FromStream(responseStream);}}}catch (Exception ex) {Debug.WriteLine("Exception in getThumbnail. Url: " + url + ". Info: " + ex.Message + Environment.NewLine + "Stack: " + ex.StackTrace);}return im;}