support relative image urls for image extraction