A Baysian Framework for Simultaneous Reconstruction and Matting