This code is better, we don't link the specific camera source code to an event, but using a function to do the stuff, this way is better if we want several events doing the same thing.
Merge remote-tracking branch 'origin/master'