modify the link href and image href