public static bool IsImage(string contentType) { return contentType == "image/jpeg" || contentType == "image/gif" || contentType == "image/png"; }