There's a little bit of mixed up logic here. If you were doing something along the lines of:
<img src="<?php if ($_GET['id'] == 1) {echo 'banner1.jpg'; } ?>" />
Then it would work, but this is assuming that you've got id=1 in the query string of the page you want the image on.
Since you're using the set page of myimage.php, you'll need to physically output the image. This is done through:
1) readfile() -- quick and easy
2) image functions (GD) -- long, but as much control as you would ever need
3) fopen() -- a lot of control, but probably not needed
Keep in mind that you'll need to output a header() that says what type of image it is. Take a look at image_type_to_mime_type(), exif_imagetype() and getimagesize().