fix for IMGFOLDER without ending slash