Added capability to pad an image to give it equal size x and y axes