         if let tintColor = tintColor {
             actionSheet.view.tintColor = tintColor
         }
-//        actionSheet.addAction(UIAlertAction(title: NSLocalizedString("Use last photo", comment: "Action title to use most recent photo in library"), style: .default) { _ in
-//            // TODO: Grab last photo
-//        })
+        actionSheet.addAction(UIAlertAction(title: NSLocalizedString("Use last photo", comment: "Action title to use most recent photo in library"), style: .default) { _ in
+            self.getLastImage(resizedTo: targetSize)
+        })
         if UIImagePickerController.isSourceTypeAvailable(.camera) {
             actionSheet.addAction(UIAlertAction(title: NSLocalizedString("Take photo", comment: "Action title to take a new photo"), style: .default) { _ in
                 self.pickImage(fromLibrary: false)


import UIKit
import Contacts

public protocol AvatarImageServiceDelegate: class {
    func updateImage(with image: UIImage?)

    
    // 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 {
