How can I view image using code like

Echo "<img src='image.php?image=12'>";

what is the code of image.php to do that ?