Set PHOTO_DIRECTORY in an InitHook so that it always runs before OnRoutesLoaded