Checks if the given filename corresponds to an image file.
static bool isImageFile(String filename) { return _hasExtension(filename, ['jpg', 'jpeg', 'png']); }