Avoids deprecated api calls and provide a screenshot function.

- adds a hotkey(p) for taking a screenshot and saving into the dropbox.
- avoids deprectated functions.