Automatically upload external images of a post to wordpress upload directory