camera cleanup fn