change image upload url to root-relative