Updated init method in UIView.