add photo and implements basic verify function