 public class NextLevelPhotoConfiguration : NextLevelConfiguration {
 
     /// Codec used to encode photo, AV dictionary key AVVideoCodecKey
-    public var codec: AVVideoCodecType = .jpeg
+    public var codec: String
 
     /// True indicates that NextLevel should generate a thumbnail for the photo
     public var generateThumbnail: Bool

                config[AVVideoHeightKey] = NSNumber(integerLiteral: Int(height))
            }

            config[AVVideoCodecKey] = self.codec.rawValue
            
            if let scalingMode = self.scalingMode {
                config[AVVideoScalingModeKey] = scalingMode

        if let options = self.options {
            return options
        } else {
            var config: [String: Any] = [AVVideoCodecKey: self.codec]
            if self.generateThumbnail {
                let settings = AVCapturePhotoSettings()
                // iOS 11 GM fix
