Detect image dimensions via http.