title: bsimagepicker Terminated due to memory issue
body: <p>I am using <code>Bsimagepicker</code> for multiple selection of images from the gallery. <code>Bsimagepicker</code> is working for small size images, When try to load high quality image with large size leads to </p>
  
  <blockquote>
    <p>"Terminated due to memory issue"</p>
  </blockquote>
  
  <p>Here is my code:</p>
  
  <pre><code> var SelectedAssets = [PHAsset]()
   var PhotoArray = [UIImage]()
  
   @objc func opengallery(_ sender: AnyObject!){
      let vc = BSImagePickerViewController()
      self.bs_presentImagePickerController(vc, animated: true, select: { (asset: PHAsset)  -&gt; Void in}, deselect: { (asset: PHAsset) -&gt; Void in }, cancel: { (assets: [PHAsset]) -&gt; Void in
          let a = 1
          print("hello \(a)") }, finish: { (assets: [PHAsset]) -&gt; Void in
              self.imgc = assets.count
          for i in 0..&lt;assets.count
          {
              self.SelectedAssets.append(assets[i])
          }
  
          self.convertAssetToImages()
  
      }, completion: guest)
   }
  
  
   func convertAssetToImages() -&gt; Void{
  
      if SelectedAssets.count != 0{
          flaggalleryin = 2
          for i in 0..&lt;SelectedAssets.count{
  
              let manager = PHImageManager.default()
              let option = PHImageRequestOptions()
              var thumbflag = 0
              var thumbnail = UIImage()
              option.isSynchronous = true
              var wid :Int!
              var hei :Int!
              if(SelectedAssets[i].pixelWidth &gt; 750){
                  wid = 700
              }else{
                  wid = SelectedAssets[i].pixelWidth
              }
              if(SelectedAssets[i].pixelHeight &gt; 750){
                  hei = 700
              }else{
                  hei = SelectedAssets[i].pixelHeight
              }
              manager.requestImage(for: SelectedAssets[i], targetSize: CGSize(width: wid, height: hei), contentMode: .aspectFill, options: option, resultHandler: {(result, info)-&gt;Void in
                  if(result != nil) {
                      thumbnail = result!
                      thumbflag = 1
                  }else{
                      thumbflag = 0
                  }
              })
              let data = UIImageJPEGRepresentation(thumbnail, 1.0)
              let newImage = UIImage(data: data!)
              self.PhotoArray.append(newImage! as UIImage)
  
          }
      }
  </code></pre>
  
  <p>Please help me to resolve the Terminated due to memory issue</p>
  
  <p>Thanks </p>