Fixed issue when no image folder exists