added feature: taking picture in both devices