add photo check backend