Updated the NetAPITest to avoid using a temporary file to store the downloaded image and load it directly from the InputStream from the httpResponse instead