Fix missing variable and correct variable name.
ImageFolder: don't valide if file is image on beginning, too slow. But can bug if folder not contain only picture.