add takePhoto method