removed unnecessary list conversion in image reading
added cmdline args for image dir
added code to create test 3D data sets