Add feature to cut uv beam to maximum unmasked area