Correct path to session.php
Make distinction between photos and other images (documents, newspapers etc) for colorbox.