             if let plotCellImage = plotCellImage, let plotCellImageWidth = plotCellImageWidth, let audioPlot = audioPlot {
                 let cell = tableView.dequeueReusableCell(withIdentifier: SplitAudioPlotCellIdentifier, for: indexPath) as! SplitAudioPlotCell
                 cell.rightView = audioPlot
-//                rowRemainingBuffers = Int(round(plotCellImageWidth / tableView.bounds.width * CGFloat(fullScreenBufferWidth)))
-//                audioPlot.setRollingHistoryLength(Int32(round(plotCellImageWidth / tableView.bounds.width * CGFloat(fullScreenBufferWidth))))
                 let imageView = UIImageView(image: plotCellImage)
                 imageView.contentMode = .left
                 cell.leftView = imageView

            } else {
                let cell = tableView.dequeueReusableCell(withIdentifier: AudioPlotCellIdentifier, for: indexPath) as! AudioPlotCell
                cell.fullscreenView = audioPlot
//                rowRemainingBuffers = fullScreenBufferWidth
                cell.backgroundColor = UIColor.clear
                return cell
            }

        }
    }
}

extension UIView {
    func getSnapshotImage() -> UIImage {
