         let pasteboard = UIPasteboard.generalPasteboard()
         pasteboard.addItems(items)
     }
+    
+    func addPasteboardItem(pasteboardItem: PasteboardItem) {
+        pasteboardItems.value = pasteboardItems.value.filter { pasteboardItem != $0 }
+        pasteboardItems.value.append(pasteboardItem)
+        
+        let pasteboard = UIPasteboard.generalPasteboard()
+        changeCount.value = pasteboard.changeCount
+    }
 
     func addItem(item: AnyObject) {
         let pasteboardItem = self.pasteboardItem(item)!
-        pasteboardItems.value = pasteboardItems.value.filter { pasteboardItem != $0 }
-        pasteboardItems.value.append(pasteboardItem)
-
-        let pasteboard = UIPasteboard.generalPasteboard()
-        changeCount.value = pasteboard.changeCount
+        self.addPasteboardItem(pasteboardItem)
     }
 
     // MARK: prvivate functions


import UIKit
import RxSwift

typealias PasteboardItemArray = Array<Dictionary<String, AnyObject>>


            return .Image(image)
        }

        fatalError("unsupported types")
    }

