I suggest you to put your source code inside a DIV with display attribute to none, and on the printing style sheet everything should be hidden but this div.
these styles shoul go inside your head tags
<style type="text/css" media="screen">
#sourceDiv{display:none} //this hides your div at the beginning
</style>
<style type="text/css" media="print">
img{display:none} //add the display none to all images and/or all the elemenets you want to hide
#sourceDiv{display:inline}
</style>
and this is an example for your div
<div id="sourceDiv"><html>
<head>
<title>
</title>
</head>
<body>
</body>
</html></div>