need latest PadImageToAspectRatio.