title: Correct way to download image Windows Phone 8
body: <p>I have found it difficult to solve quite simple task: how to download image from my remote server?</p>
  
  <p>The easiest way to do it is just:</p>
  
  <pre><code>BitmapImage img = new BitmapImage(new Uri("http://myserv/test.jpg", UriKind.Absolute));
  xamlImageContainer.Source = img;
  </code></pre>
  
  <p>but I think this solution is not ideal, because it can block UI thread (can it?).
  So I decided to use "async" approach:</p>
  
  <pre><code>async void LoadImage()
  {
      xamlImageContainer.Source = await Task.Run(() =&gt;
      {
          return new BitmapImage(new Uri("http://myserv/test.jpg", UriKind.Absolute));
      });
  }
  </code></pre>
  
  <p>But on the line <code>return new BitmapImage</code> I got UnauthorizedAccessException which says "invalid cross-thread access"!
  What is wrong here, please suggest.</p>