the path to the image is a relative path based on the location of the file calling the image.
lets say the page calling the image is at:
page.php
and the image is at:
image1.jpg
the userPages/page.php page needs to move down one directory (../) then look for the images folder to find the image1.jpg file
the image tag for this would look like:
<img src="../images/"<?php echo(isset($_SESSION['imgName'])?$_SESSION['imgName']:""); ?>" />