 
 import UIKit
 import Contacts
+import Photos
 
 public protocol AvatarImageServiceDelegate: class {
     func updateImage(with image: UIImage?)

        viewController.present(imagePicker, animated: true, completion: nil)
    }
    
}



    
    // MARK: - Public functions
    
    public func presentImageOptions(from sender: Any?, existingPhoto: Bool = false, namedPerson: NamePresentable? = nil, tintColor: UIColor? = nil, statusBarStyle: UIStatusBarStyle = .default, resizedTo targetSize: CGSize? = nil) {
        AvatarImageService.statusBarStyle = statusBarStyle
        let title: String
        if let namedPerson = namedPerson {
