    */
   func updateImageJSON(json: JSON, withRequest request: RouterRequest) throws -> JSON {
     var updatedJson = json
-    guard let authContext = request.userInfo["mcaAuthContext"] as? AuthorizationContext, 
+    guard let authContext = request.userInfo["mcaAuthContext"] as? AuthorizationContext,
               let contentType = ContentType.sharedInstance.getContentType(forFileName: updatedJson["fileName"].stringValue) else {
       throw ProcessingError.Image("Invalid image document!")
     }

      for part in parts {
        if part.name == "imageJson" {
          switch (part.body) {
          case .text(let stringJson):
            let encoding = String.Encoding.utf8
            if let dataJson = stringJson.data(using: encoding, allowLossyConversion: false) {

    case getImagesFailed(String)
    case addUserRecordFailed(String)
    case requestFailed

    var errorDescription: String? {
        switch self {
        case .getTagsFailed: return "Failed to obtain tags from database."
