Initialized camera and added event handlers