Dependency Injection for http_client

Hey, as proposed in the discussion, dependency injection for http_client. So one can easily write unit tests for the image fetcher. Let me know if it's fine or if you want changes.

Cheers, Philip