Add drawing.pattern() helper