Unify flat correction and sinogram correction

fixes #34