Unify flat correction and sinogram correction

@matze please have a good look. There was a lot of `yy` `p` going on :smile: