CDN images

Sure it won't work with custom domain? That code returns:
`if (Bucket Name as Domain Name) http(s)://bucket_name/file.ext`
`else http(s)://bucket_name.s3.amazonaws.com/file.ext`

About HTTPS, well pointed. It won't work.