I agree with Matt. You might need two separate scripts to get the functionality you want, but you need to get some thing straight first:
1) ... my page, etc... should be step #1.
Get everything situated the way you wanted, including your image tag with the 'broken picture' worry about the broken picture on the next step.
2) if you can figure out a way to type "http://www.mysite.com/whatever/evenmore/picture1.jpg"
and get a picture, then your task is simple to complete:
put an <img src="$what_you_typed"> tag where you want your picture to appear, and you're in business.
Otherwise.... it means that you've stored your scanned images outside of the "Document Root" The document root is simply "only the files that i want other people on the internet to be able to see".
If anybody could see any file that you have on your system, that would be really bad, so you have to explicitly let people see files by putting them in the document root.
If you don't want to put them in the document root, then you can "fool" the webserver into letting people see them by making a separate script, call it "view_picture.php", and make view_picture.php perform the Header(), Readfile() comamnds, and nothing else.
Any time you let people view files outside of the document root, you NEEED to really be careful about security, otherwise somebody might be able to say "view_picture.php?file=/home/janine/email.txt" instead of "file=/home/janine/scanned/picture.jpg"
Hopefully this will get you started...
--Robert