Resolve image hrefs with URI library