Detect image dimensions over http.