from pathlib import Path
import mimetypes


def _isImage(p: Path) -> bool:
    """Determine if the given path is an image, based on mime type"""
    t, e = mimetypes.guess_type(str(p))
    if t and t.startswith("image"): return True
    else: return False