Added an embedded mode for the camera application