added reading seg images
more on meds file paths