split functions into video and still capture