                 case none
             }
 
-            enum ImageType {
-                case thumbnail
+            enum ImageType: String {
+                case thumbnail = "thumb"
                 case border
                 case frameless
                 case frame
             }
 
-            enum ImageSize {
+            enum ImageSize: String {
                 case upright
             }
 


class InsertMediaSettingsTableViewController: UITableViewController {
    private let image: UIImage
    private let searchResult: InsertMediaSearchResult

    private var textViewHeightDelta: (value: CGFloat, row: Int)?
    private var textViewsGroupedByType = [TextViewType: UITextView]()

    struct Settings {
        let caption: String?
        let alternativeText: String?
        let advanced: Advanced

        struct Advanced {
            let wrapTextAroundImage: Bool
