introduce common function for getting HTTP streams

this will allow us to create a common way to support
caching images in the future
4 files changed