add camera write function

add camera write function