Improved handling for base URLs, for photos and implied URLs