add draw commands to pattern