iterates through ndim as opposed to 8, removed unused dim variable, moved ux uy and uz to the init_im function (used to be in init_im_first_time)
iterates through ndim as opposed to 8, removed unused dim variable, moved ux uy and uz to the init_im function (used to be in init_im_first_time)

bbrister/SIFT3D,bbrister/SIFT3D,bbrister/SIFT3D