Automatic ratio detection and url redirection for user uploaded images.