private bool IsImage(string ext) { return ext == "gif" || ext == "png" || ext == "jpg" || ext == "jpeg"; }