How do I automatically host external pictures on my website?

I have a wordpress blog with a lot of pictures hosted on third party websites. I want all the pictures to be hosted in my wordpress blogs. I don’t want to manually download all pictures and replace them in the posts, i need something to do that automatically.