added new derivative function that works in place
second half of new deriviative function (which does't work)
fixed bug in registration due to not having 3D image for deriv
fixed a bug, and removed an error in the debugging

- (set/get can return different things if the underlying type isn't double)
- If standard deviation for smoothing <= 0, then don't do anything