added argument imgfolder