Shouldn't you just do this in `takePicture`? This function is supposed to decide which type of capture to carry out.