On branch master - gestures refactoring and tga bug

- use callback function instead of handler
- fixed the tga loading bug