 
     func imagePickerController(picker: UIImagePickerController, didFinishPickingImage image: UIImage!, editingInfo: [NSObject : AnyObject]!) {
 
+        // Prepare meta data
+
+        var metaData: String? = nil
+
+        let audioMetaDataInfo = ["image_width": image.size.width, "image_height": image.size.height]
+
+        if let audioMetaData = NSJSONSerialization.dataWithJSONObject(audioMetaDataInfo, options: nil, error: nil) {
+            let audioMetaDataString = NSString(data: audioMetaData, encoding: NSUTF8StringEncoding) as? String
+            metaData = audioMetaDataString
+        }
+
+
+        // Do send
+
         var imageData = UIImageJPEGRepresentation(image, YepConfig.messageImageCompressionQuality())
-
 
         let messageImageName = NSUUID().UUIDString
 

                        realm.beginWriteTransaction()
                        message.localAttachmentName = messageImageName
                        message.mediaType = MessageMediaType.Image.rawValue
                        realm.commitWriteTransaction()
                    }


                        realm.beginWriteTransaction()
                        message.localAttachmentName = messageImageName
                        message.mediaType = MessageMediaType.Image.rawValue
                        if let metaData = metaData {
                            message.metaData = metaData
                        }
                        realm.commitWriteTransaction()
                    }

