Optimisation and Inverse Problems in Imaging