Determine se o arquivo enviado é imagem (qualquer formato) no MVC

Então estou usando este código para ver:

<form action="" method="post" enctype="multipart/form-data">

  <label for="file">Filename:</label>
  <input type="file" name="file" id="file" />

  <input type="submit" />
</form>

Isso para o modelo:

[HttpPost]
public ActionResult Index(HttpPostedFileBase file) {

  if (file.ContentLength > 0) {
    var fileName = Path.GetFileName(file.FileName);
    var path = Path.Combine(Server.MapPath("~/App_Data/uploads"), fileName);
    file.SaveAs(path);
  }

  return RedirectToAction("Index");
}

Funciona muito bem, a menos que o usuário adicione um arquivo que não seja uma imagem. Como posso garantir que o arquivo enviado é uma imagem. obrigado

questionAnswers(9)

yourAnswerToTheQuestion