Removed CKeditor destroy function from the jb_modal_dialog function. Due to improved core code this function is not needed anymore.
Make distinction between photos and other images (documents, newspapers etc) for colorbox.
Correct path to session.php