Issue #346 - Gallery images missing if uploads directory is secured
PhotoGallery object not instatiated correctly in photo.php