check_photo linux porting