Zidan_@777@,
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'http://yandex.ru/?img=543534'); //вместо яндекса свой урл картинки пропишешь
curl_setopt($ch, CURLOPT_TIMEOUT, 20);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$res = curl_exec($ch);
curl_close($ch);
header('Content-type: image/gif');
echo $res;
file_put_contents('image.gif', $res);попробуй) не проверял