title: Numpy scale down array representing image
body: <p>I have an image stored in a numpy array ~180x130 pixels.</p>
  
  <p>I want to scale it so that the image is NxN but keep it so that aspect ratio is kept. This will mean black space around the dimension that is smaller.</p>
  
  <p>Is there a function to do this?</p>