         let takenImage = info[UIImagePickerControllerOriginalImage] as! UIImage
         print("original image width: \(takenImage.size.width) height: \(takenImage.size.height)")
         self.lastPhotoTaken = UIImage.resizeImage(takenImage, newWidth: 520)
+        self.lastPhotoTakenWidth = self.lastPhotoTaken.size.width
+        self.lastPhotoTakenHeight = self.lastPhotoTaken.size.height
         print("resized image width: \(self.lastPhotoTaken.size.width) height: \(self.lastPhotoTaken.size.height)")
         self.confirmationView.photoImageView.image = self.lastPhotoTaken
 

        lastPictureObjectTaken.image = lastPhotoTaken
        lastPictureObjectTaken.displayName = lastPhotoTakenCaption
        lastPictureObjectTaken.ownerName = FacebookDataManager.SharedInstance.fbUserDisplayName
        
        
    }

    
    var lastPhotoTakenCaption: String!
    
    var lastPhotoTakenWidth : CGFloat!
    
    var lastPhotoTakenHeight : CGFloat!
    
    var lastPictureObjectTaken : Picture!
    

    
    
    func showImagePickerActionSheet(presentingVC: TabBarViewController!) {
