Added come code to enable the new images file structure and commented out a weird bug l385 in func_preproc.py