BF: setup histograms with warped image, apply preconditioning factors to gradient, use L-BFGS-B instead of GC, fix bug in mattes initialization