There is a line where PHP stops and HTML begins. If you want to include an image on a web page, you either end your PHP code and put in an img src="" tag or, if you like typing a lot of pointless escape characters, you can echo the HTML as a PHP statement with something like:
echo "<img src=\"file.gif\" width=\"x\" etc>";
If you are looking create a link to an image, you could do either of the above using an a href="" instead.