check string is image
static bool isImage(String string) { String _ext = string.toLowerCase(); return _ext.isJpg || _ext.isPng || _ext.isSvg; }