Fixed a problem where a change in volume dimension would cause the segmenter to give an error regarding reshaping a matrix. The volume file in temp folder was opened with "open or create" and is now changed to "replace or create".