added takephoto and addphoto