Creating an embedded screencast recorder in your desktop application