[#1563] Faris: Added a condition to add_child_photo. Defect is fixed.