update image path to be relative path