Agent now determines length of remote image file directly; no need to provide as a query parameter