                 ) {
                 result = tryModeImage
             }
-        default:
+        case .none:
             break
         }
 

            let scale = max(imageSize.width / size.width, imageSize.height / size.height)
            finalSize = CGSize(width: imageSize.width / scale, height: imageSize.height / scale)
            finalOrigin = CGPoint(x: (size.width - finalSize.width) / 2.0, y: (size.height - finalSize.height) / 2.0)
        default:
            break
        }
        context.draw(image, in: CGRect(origin: finalOrigin, size: finalSize))

                } else {
                    fillDiamond(context: context, rect: rect)
                }
            case .square:
                context.fill(rect)
        }
    }
