fixed indexing to use round, not float. also implemented clipping for voxels outside of source space