Nonconvex image reconstruction via expectation propagation