     func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {
         let item = items[indexPath.row]
         let cell = collectionView.dequeueReusableCellWithReuseIdentifier("PhotoCell", forIndexPath: indexPath) as! PhotoCell
-        cell.photoImageView.image = item["IMAGE"] as? UIImage
         cell.yearLabel.text = item["YEAR"] as? String
         cell.dayLabel.text = item["DAY"] as? String
+        
+        guard let imagePath = item["IMAGE_PATH"] as? String else { return cell }
+        let image = UIImage(contentsOfFile: imagePath)
+        cell.photoImageView.image = image
+        
         return cell
     }
     

    // MARK:UIImagePickerDelegate
    
    func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) {
        if let image = info[UIImagePickerControllerOriginalImage] as? UIImage {
            dismissViewControllerAnimated(true) { [weak self] () -> Void in
                guard let s = self else { return }
                
                let now = NSDate()
                let yearFormatter = NSDateFormatter()
                yearFormatter.dateFormat = "yyyy"
                let dayFormatter = NSDateFormatter()
                dayFormatter.dateFormat = "M/d"
                
                let dict: [String: AnyObject] = [
                    "ID": NSUUID().UUIDString,
                    "YEAR": yearFormatter.stringFromDate(now),
                    "DAY": dayFormatter.stringFromDate(now),
                    "IMAGE": image
                ]
                
                s.items.append(dict)
                s.collectionView.reloadData()
            }
        }
    }
}
    
    func loadItems() {
        guard let data = NSData(contentsOfFile: dataPath) else { return }
        guard let items = NSKeyedUnarchiver.unarchiveObjectWithData(data) as? [[String: AnyObject]] else {
            return
        }
        print(items)
        self.items = items
    }
    
