Use ratioInside when creating masks.