Please look at the resulting image CAShapeLayer with path, with a mask over top
The red underneath is a UIBezierPath which is then assigned to a CAShapeLayer with