make courtmask return binary