Hello,
The best approach could be to get the image using curl and then add it as any other image. This is get it, save to the disk and add it.
You can get the image using curl using a code like:
$ch = curl_init ($imageUrl);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
$raw = curl_exec($ch);
$fp = fopen($pathImage,'x');
fwrite($fp, $raw);
fclose($fp);
Regards.