imagecapture-new.cc modified