Detect image dimensions via request.