patches: reconstruct patches given a maximum RMSE