Page that detects the image aspect ratio of an image and allows the image to be resized while preserving the ratio