<body>
some text
<img src="imagemaker.php">
some more text
</body>
now you need to write script imagemaker.php
<?PHP
//your image creating code here
//you can select it from DB for example
ImageJpeg($image_handle); //now output goes
// directly to browser.
// No need to store image files on server
?>