resolve add image file href invalid error