         }
         
         if let text = parseText(info, key:"text") {
-            self.addTextLayer(text, info: info, dimension:screenDimention, view: view)
+            self.addTextLayer(text, info: info, dimension:screenDimention, layer: layer)
         }
         
         // http://stackoverflow.com/questions/9290972/is-it-possible-to-make-avurlasset-work-without-a-file-extension

        }
    }
    
    func addTextLayer(text:String, info:[String:AnyObject], dimension:CGSize, view:UIView) {
        var fTextBottom = false
        var fTextTop = false
        var rcText = view.bounds
        let label = UILabel(frame: rcText)
        label.numberOfLines = 999

        label.textAlignment = NSTextAlignment.Center
        func processAlignment(alignment:String) {
            switch(alignment) {
            case "left":
                label.textAlignment = NSTextAlignment.Left
            case "right":
                label.textAlignment = NSTextAlignment.Right
            case "top":
                fTextTop = true
            case "bottom":

        var attr = [String:AnyObject]()
        attr[NSFontAttributeName] = UIFont(name: "Helvetica", size: fontSize)
        attr[NSForegroundColorAttributeName] = UIColor(CGColor: SwipeParser.parseColor(self.info["textColor"], defaultColor: blackColor))
        processShadow(info, layer: layer)

        textLayer.string = NSAttributedString(string: text, attributes: attr)

        /*
        let rc = label.textRectForBounds(CGRectMake(0, 0, rcText.size.width, 99999), limitedToNumberOfLines: 999)
        if fTextBottom {
            rcText.origin.y = rcText.size.height - rc.size.height
