when resizing images, pick a source image with the same aspect ratio if possible