Graph-Cut Based Discrete-Valued Image Reconstruction