Laser with dynamic holographic intracavity distortion correction capability