started to write code generation of image registration
more stuff for registration
towards generation of linear elastic kernel
better formulation, added substitution replacement