title: Return a PHP page as an image
body: <p>I am trying to read a image file (.jpeg to be exact), and 'echo' it back to the page output, but have is display an image...</p>
  
  <p>my index.php has an image link like this:</p>
  
  <pre><code>&lt;img src='test.php?image=1234.jpeg' /&gt;
  </code></pre>
  
  <p>and my php script does basically this:</p>
  
  <p>1) read 1234.jpeg
  2) echo file contents...
  3) I have a feeling I need to return the output back with a mime-type, but this is where I get lost</p>
  
  <p>Once I figure this out, I will be removing the file name input all together and replace it with an image id.</p>
  
  <p>If I am unclear, or you need more information, please reply.</p>