Es mucho mejor usar DOM, si se dispone de estas clases:
Código PHP:
Ver original<?php
$html = '<!DOCTYPE html><html><body>
Test<br />
<img src="myimage.jpg" title="title" alt="alt" id="imagen" />
<img src="myimage2.jpg" title="title" alt="alt" />
</body></html>';
$doc = new DOMDocument();
$doc->loadHTML($html);
echo $doc->getElementById('imagen')
->attributes
->getNamedItem('src')
->nodeValue;
//myimage.jpg
http://www.php.net/manual/es/book.dom.php