mapping patterns to the pdg

Signed-off-by: Tim Henderson <tim.tadh@gmail.com>
can now generate pattern pictures which include the examples

Signed-off-by: Tim Henderson <tim.tadh@gmail.com>