Modify freeroi-sess

add -img -ref -task for freeroi-sess