development of check_photo