    */
   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!")
     }

                  print("Error response from OpenWhisk: \(str)")
              }
              catch {
                  
              }
          }
        }
      }
    
    // Kitura does not yet execute certain functionality asynchronously,
    // hence the need for this block.
    DispatchQueue.global().async {

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

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