         let width = Int(ceil(fromRect.width))
         let height = Int(ceil(fromRect.height))
         
+        guard width > 0 && height > 0 else { return nil }
+        
         var _buffer: CVPixelBuffer?
         let status = CVPixelBufferCreate(nil, width, height, kCVPixelFormatType_32RGBA, nil, &_buffer)
         

        
        let width = Int(ceil(fromRect.width))
        let height = Int(ceil(fromRect.height))
        
        var result = Texture<RGBA32ColorPixel>(width: width, height: height)
        

        let width = Int(ceil(fromRect.width))
        let height = Int(ceil(fromRect.height))
        
        guard width > 0 && height > 0 else { return nil }
        
        guard let cgColorSpace = colorSpace.cgColorSpace else { return nil }
        var result = Image<RGBA32ColorPixel>(width: width, height: height, colorSpace: colorSpace)
        
