Added onFrame callback
Merge pull request #5 from cloppy/0.7

Added onFrame callback