modify -img and add task directory for freeroi-sess

modify -img and add task directory for freeroi-sess