             if paths.count > 0 {
                 if let dirPath = paths[0] as? String {
                     let writePath = dirPath.stringByAppendingPathComponent(NSProcessInfo.processInfo().globallyUniqueString)
-                    UIImagePNGRepresentation(image).writeToFile(writePath, atomically: true)
+                    UIImageJPEGRepresentation(image, 0.6).writeToFile(writePath, atomically: true)
                     
                     return NSURL(string: writePath)
                 }

        default:
            return CGSize(width: 0, height: 0);
        }
    }
}


                    
                    let orientation = UIImageOrientation(defaultRepresentation.orientation())
                    
                    if let photo = UIImage(CGImage: defaultRepresentation.fullResolutionImage().takeUnretainedValue(), scale: CGFloat(defaultRepresentation.scale()), orientation: orientation) {
                        
                        if let url : NSURL = self.saveImageOnDisk(photo) {
                            urls.append(url);
