How to resize to correct proportions the images in the form