         let longerLeft = max(titleLeft, messageLeft)
 
         // toastView frames
-        let toastViewWidth = max(imageWidth + (Constants.ASToastHorizontalPadding * 2), (longerLeft + longerWidth + Constants.ASToastHorizontalPadding))
-        let toastViewHeight = max(messageTop + messageHeight + Constants.ASToastVerticalPadding, (imageHeight + (Constants.ASToastVerticalPadding * 2)))
+        let toastViewWidth = max(imageWidth + (Constants.ToastHorizontalPadding * 2), (longerLeft + longerWidth + Constants.ToastHorizontalPadding))
+        let toastViewHeight = max(messageTop + messageHeight + Constants.ToastVerticalPadding, (imageHeight + (Constants.ToastVerticalPadding * 2)))
 
         toastView.frame = CGRect(x: 0.0, y: 0.0, width: toastViewWidth, height: toastViewHeight)
 

      - parameter position: Position to centralize
      - parameter toastView: Toast view
     */
    fileprivate func centerPointForPosition(position: ASToastPosition, toastView: UIView!) -> CGPoint {
        switch position {
        case.top :
            return CGPoint(x: self.bounds.size.width / 2, y: (toastView.frame.size.height / 2) + Constants.ASToastVerticalPadding)
        case .center:
            return CGPoint(x: self.bounds.size.width / 2, y: self.bounds.size.height / 2)
        default:
            return CGPoint(x: self.bounds.size.width / 2, y: (self.bounds.size.height - (toastView.frame.size.height / 2)) - Constants.ASToastVerticalPadding)
        }
    }


      Create toast with given position
      - parameter position: The position that toast will displayed
     */
    fileprivate func makeToastActivity(position: ToastPosition) {
        activityView = UIView(frame: CGRect(x: 0.0, y: 0.0, width: Constants.ToastActivityWidth, height: Constants.ToastActivityHeight))
        activityView.center = centerPointForPosition(position: position, toastView: activityView)
        activityView.backgroundColor = UIColor.black.withAlphaComponent(Constants.ToastOpacity)
        activityView.alpha = Constants.ToastViewAlpha
        activityView.autoresizingMask = [UIViewAutoresizing.flexibleLeftMargin, UIViewAutoresizing.flexibleRightMargin, UIViewAutoresizing.flexibleTopMargin, UIViewAutoresizing.flexibleBottomMargin]
        activityView.layer.cornerRadius = Constants.ToastCornerRadius

        if Constants.ToastDisplayShadow {
            activityView.layer.shadowColor = UIColor.black.cgColor
            activityView.layer.shadowOpacity = Constants.ToastShadowOpacity
            activityView.layer.shadowRadius = Constants.ToastShadowRadius
            activityView.layer.shadowOffset = Constants.ToastShadowOffset
        }

        let activityIndicatorView: UIActivityIndicatorView! = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.whiteLarge)
