title: Changing UI Image's sprite, preserve aspect ratio is checked but not working? Unity 2019.1.0f2
body: <p><strong>Changing UI Image's sprite, preserve aspect ratio is checked but not working. Version: Unity 2019.1.0f2</strong></p>
  
  <p><strong>What happened</strong></p>
  
  <p>I updated to the latest software update for Unity which is Unity 2019.1.0f2.</p>
  
  <p>Before when it was version 2018.3.12f, the UI Image's sprite changes normally. But now when I have updated it, it doesn't regain its aspect ratio and gets stretched.</p>
  
  <p>When the sprite changes on the UI image, the aspect ratio/width and height changes for the image and when you go back to the original image, then it becomes stretched or compressed.</p>
  
  <p>I thought it was because I updated my game Unity version but I reproduced it on a brand new Unity project and it is doing the exact same thing.</p>
  
  <hr>
  
  <p><strong>How I reproduced it:</strong></p>
  
  <p>Code in Sprite[] and Image.</p>
  
  <p>Code to change the sprite image to the next image in the sprite array.</p>
  
  <p>Have a button to cycle through the images.</p>
  
  <p>Run game.</p>
  
  <p>Press button multiple times.</p>
  
  <p>When it is cycled back to the first image again, it is now stretched or compressed and aspect ratio doesn't go back to its original size.</p>
  
  <hr>
  
  <p>This bug has only been happening when I updated to the latest version Unity 2019.1.0f2 from 2018.3.12f.</p>
  
  <p>Help would be appreciated. Thanks!</p>