add events to draw background and foreground
Merge pull request #1 from davidmason/master

add events to draw background and foreground