The best way to resize the picture in order to avoid distorting it's ratio

is to maintain the aspect ratio while resizing. This can be done by either cropping the image or adding a border to fill in the missing space while keeping the original proportions intact. Another option is to use image editing software that allows you to resize the image by inputting specific dimensions for either the width or height, while automatically adjusting the other dimension to maintain the aspect ratio.