use new function for camera save