changed photo_check using cv util