Verifies whether an image file is valid.
isImageFile(path) → returns boolean
isImageFile(path)
→ returns boolean