moved CAMERA_MODE and VIDEO_MODE variable into Preference class