Regularized magnetic islands. I. Hyperviscosity and profile functions