added takePicture