isImage: function(file) {
            const ftype =  "|" + file.type.slice(file.type.lastIndexOf("/") + 1) + "|";
            return "|jpg|png|jpeg|bmp|gif|".indexOf(ftype) !== -1;
        }