     }
     
     public func stopWithError(error: String) {
-        let imageFrame = CGRectMake(0, 0, self.frame.size.height * 0.4, self.frame.size.height * 0.4)
-        self.imageView = UIImageView(frame: imageFrame)
-        self.imageView.center = self.shapePoint
         imageView.image = UIImage(named: "error")
         titleLabel.text = error
+        state = .Error
         self.shapeLayer.removeAnimationForKey("rotationAnimation")
         self.progressView.removeFromSuperview()
         self.addSubview(self.imageView)

    private var shapePoint: CGPoint = CGPointMake(0, 0)
    private var progressView: UIView!
    private var parentView: UIView?
    
    override init(frame: CGRect) {
        super.init(frame: frame)


            })
        }
        self.state = .Default
        
    }
    
