                             let deltaRadius:Int = hyp - faceFeatureRadius
                             let pixelWeight:Float
                             
-                            if deltaRadius > 1
+                            if deltaRadius > faceRadius
                             {
-                                fatalError("didn't know this could happen")
+                                pixelWeight = 1
                             }
                             else if deltaRadius > 0
                             {
-                                let deltaRaiusFloat:Float = Float(deltaRadius)
-                                pixelWeight = deltaRaiusFloat / faceRadiusFloat
+                                let deltaRadiusFloat:Float = Float(deltaRadius)
+                                pixelWeight = deltaRadiusFloat / faceRadiusFloat
                             }
                             else
                             {

        if minSize <= kMinImageSize
        {
            bokehSize = kMinBokehSize
            sizeRatio = 1
        }
        else
        {

    private let kFacesTextureIndex:Int = 2
    private let kBokehTextureIndex:Int = 3
    private let kMinImageSize:Int = 640
    private let kMinBokehSize:Int = 12
    private let kMinSizeRatio:Int = 2
    private let kRepeatingElement:Float = 1
    private let kGaussSigma:Float = 10
    
    required init(device:MTLDevice)
    {
        bokehSize = 0
        sizeRatio = kMinSizeRatio
        
        super.init(device:device, functionName:kFunctionName)
    }
