             let bounds = CGRect(x: _minX, y: _minY, width: width, height: height)
             let _image = image.transformed(by: SDTransform.translate(x: Double(block.minX - minX), y: Double(block.minY - minY)))
             
-            texture_renderer.render(_image, to: surface, bounds: bounds, colorSpace: workingColorSpace)
+            renderer.render(_image, to: surface, bounds: bounds, colorSpace: workingColorSpace)
         }
     }
 }

            image = image.insertingIntermediate()
        }
        
        guard blockSize > 1 && maxBlockSize > 1 else { return image }
        
        let _extent = extent.isInfinite ? extent : extent.insetBy(dx: .random(in: -1..<0), dy: .random(in: -1..<0))
        
        let info = TiledCacheKernel.Info(image: image, blockSize: min(blockSize, maxBlockSize), maxBlockSize: maxBlockSize, colorSpace: colorSpace)

                
                if let colorSpace = colorSpace {
                    
                    let rendered = texture_renderer.createImage(self.image, from: extent, colorSpace: colorSpace, fileBacked: true)
                    return rendered?.cgImage
                    
                } else {
                    
                    let rendered = texture_renderer.createCGImage(self.image, from: CGRect(extent))
                    return rendered?.fileBacked() ?? rendered
                }
            }
