 http   = require "https"
 mime   = require "mime"
 crypto = require "crypto"
+parser = require "url"
 
 {
   embedly : {


    mimeType = mime.lookup filename

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

  if fs.existsSync filename
    return serveFile filename, res

  for i in [noExt, width, height]
    md5.update(i)

  digest   = md5.digest("hex")
  filename = "#{imagePath}/#{digest}.#{ext}"

  serveFile = (filename, res)->
