takephoto init