              "key=#{apiKey}&" +
              "url=#{url}"
 
-  filename = "#{imagePath}/#{url.split('/').join('_')}"
+  md5      = crypto.createHash("md5").update(url).digest("hex")
+  filename = "#{imagePath}/#{md5}"
 
   serveFile = (filename, res)->
     fileStream = fs.createReadStream filename


    mimeType = mime.lookup filename

    res.writeHead(200, {'Content-Type': mimeType });

  if fs.existsSync filename
    return serveFile filename, res

fs     = require "fs"
http   = require "https"
mime   = require "mime"
crypto = require "crypto"

{
  embedly : {
