use dep injection for camera