Image registration library for 3D volumes from 2D stacks of images