title: I have a problem with uploading the image to the canvas in UWP
body: <p>In my <code>MainPage</code> when I try to run the function(ShowEntity) the image wont show on the background.
  When i run it on my player(class in my project) then the image wont show up on the screen.
  i tried to change the format few time but i dont find the problem.
  i think there is something wrong in the ShowEntity function.</p>
  <p>this is an example of how i try to make it work.
  <code>Player _player1 = new Player(500, 500, 150, 150, &quot;ms-appx:///Asssets/Player5.gif&quot;);</code></p>
  <pre><code>    public class Piece
      {
          private double _x;
  
          private double _y;
  
          public int _width;
  
          private int _height;
  
          public string _image;
  
          public Image _imagesource { get; set; }
  
       public Piece(double x, double y, int width, int height, string image)//BitmapImage imagesource)
          {
              _x = x;
  
              _y = y;
  
              _image = image;
  
              _width = width;
  
              _height = height;
  
              _imagesource = ShowEntity();           
          }
  
          private Image ShowEntity()
          {
              Image _img = new Image();
  
              _img.Source = new BitmapImage(new Uri(_image));
  
              _img.Height = _height;
  
              _img.Width = _width;
  
              Canvas.SetLeft(_img, _x);
  
              Canvas.SetTop(_img, _y);
  
              GameManager.MyCanvas.Children.Add(_img);
  
              return _img;
          }
  </code></pre>