more costs
working
seems to fix img<->func problems
optimizing starting from empty sdf kinda works
rigid motion works, something weird about gradients