title: MagickImage StackOverFlowException
body: <p>I am trying to convert a frame data from to jpg with MagickImagCollection and I get an error StackOverFlowException.</p>
  
  <p>The error throws it when creating the image collection of MagickImageCollection.</p>
  
  <pre><code>private void FrameCallBack(int streamId, IntPtr frameData, IntPtr userData)
          {
              if (_isPlayingStream)
              {
                  var packet = Marshal.PtrToStructure&lt;PacketInfo&gt;(frameData);
                  var size = (int)packet.PacketSize;
  
                  switch (packet.PacketType)
                  {
                      case 1:
                          var iBytes = new byte[size];
                          Marshal.Copy(packet.PacketBuffer, iBytes, 0, size);
                          LaunchNewFrameEvent(iBytes);
                          //CreateKeyFrame();
                          break;
                  }
              }
          }
  
  
  
  private void LaunchNewFrameEvent(byte[] frame)
      {
          var image = new MagickImageCollection(frame, new MagickReadSettings
          {
              Format = MagickFormat.Mp4,
              Height = 720,
              Width = 1280
          });
  
          var pictureBytes = image.LastOrDefault().ToByteArray(MagickFormat.Jpg);
      }
  </code></pre>