Şu satırı:

$image_src = $matches['1'][0];
Şöyle değiştirdiğin takdirde olması gerek:

$image_src = empty($matches['1'][0]) ? 'http://resminyolu' : $matches[1][0];