fix implement of photo dom