let renderer = UIGraphicsImageRenderer(size: CGSize(width: 500, height: 500)) let image = renderer.image { context in let size = renderer.format.boun