modify -img and add task directory for freeroi-sess