Added initialization of camera. This should prevent breaking of camera