Moved the hotkeys into the CppImageSource and PyImageSource
This means that hotkeys are deleted automatically once the CppImageSource is destroyed.
Solves problem of a hotkey calling a nolonger existent python object and crashing