 
 let x = GitHubIdenticon()
 UIImage(cgImage: x.icon(from: num, size: CGSize(width: 44, height: 44)))
-UIImage(cgImage: x.identity(using: num, withRows: 5, columns: 5))
+let image = UIImage(cgImage: x.identity(using: "D441DDE7-27D5-471F-B426-A2A745D400F0".hash, withRows: 5, columns: 5))
+
+
+// Create path.
+let paths = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)
+let filePath = "\(paths[0])/Identicon.png"
+
+let url: URL = URL(fileURLWithPath: filePath)
+print(url.description)
+
+let
+imageView: UIImageView = UIImageView(frame: CGRect(x: 0, y: 0, width: 600, height: 600))
+imageView.layer.cornerRadius = 7.5
+imageView.backgroundColor = UIColor(colorLiteralRed: 235/250, green: 235/250, blue: 235/250, alpha: 1.0)
+imageView.image = image
+
+// Save image.
+do {
+    try UIImagePNGRepresentation(image)?.write(to: url)
+} catch let error as NSError {
+    print("Error")
+}
+
 
 x.generated()
 
 class IdentityView: UIView {
-    public let text: String = "AZBF043BE1B"
+    public let text: String = "211627EF"
     
     override func draw(_ rect: CGRect) {
         guard let g: CGContext = UIGraphicsGetCurrentContext() else {

    private let numberOfRows = 5
    private let numberOfRowComponents = 5
    
    public let size: CGSize = CGSize(width: 88, height: 88)
    
    public init() {}
    

                       brightness: bri,
                       alpha: 1.0)
    }
    
    class var tintMuted: UIColor {
        let factor: Float = 0.66
        return UIColor.init(colorLiteralRed: ((12/255.0) + factor)/2,
                            green: ((150/255.0) + factor)/2,
                            blue: ((75/255.0) + factor)/2,
                            alpha: 1.0)
    }
}

public extension CGColor {
