how to use a pattern overlay