added debug text to analyze req object in photos.js route.