Modularized the image upload/retrieval code to allow one or many buckets/CDNs