Allow specification of explicit pairwise potentials
Add driver for image denoising