         // Draw the new thumbnail
         draw(in: destinationRect)
         // Retrieve and return the new image
-        guard let output = UIGraphicsGetImageFromCurrentImageContext() else {
-            return nil
-        }
-        UIGraphicsEndImageContext()
-        return output
+        if let output = UIGraphicsGetImageFromCurrentImageContext() {
+            return output
+        }
+        return self
     }
     
     /// Extract image

        text: String,
        font: UIFont,
        color: UIColor = UIColor.white,
        rotate: Double = M_PI_4 ) -> UIImage?
    {
        UIGraphicsBeginImageContextWithOptions(size, false, 0)
        let context = UIGraphicsGetCurrentContext()
        
        // Draw the original image into the context

        )
        
        // Retrieve the new image
        if let output = UIGraphicsGetImageFromCurrentImageContext() {
            return output
        }
        return self
    }
}

