Can set_post_thumbnail be used like this Download an image from the specified URL and attach it to a post.