def METHOD_NAME(md_file, image, remote_file_url):
    with open(md_file, 'r') as f:
        post = f.read()
    post = post.replace(image, remote_file_url)
    with open(md_file, 'w') as f:
        f.write(post)