Mode stabilization of a high power laser via computer vision