Regularized estimation of image statistics by Score Matching