         ,M
         ,S
         ,XS
+        ,Custom
         ,_Num
         
         func size()-> CGFloat {

    var imageSize: ImageSize = .M
    var imageQuality: ImageQuality = .Normal
    var imageAlign: ImageAlign = .None
    
    var endpoint = ""
   

            defaults.setObject(uploadDir, forKey:self.settingKey("blogsettings_uploaddir", user: user))
            defaults.setInteger(imageSize.rawValue, forKey:self.settingKey("blogsettings_imagesize", user: user))
            defaults.setInteger(imageQuality.rawValue, forKey:self.settingKey("blogsettings_imagequality", user: user))
            defaults.setInteger(imageCustomWidth, forKey:self.settingKey("blogsettings_imagecustomwidth", user: user))
            defaults.synchronize()
        }
    }
