prepare capture to camera