From Rank Estimation to Rank Approximation: Rank Residual Constraint for Image Restoration