Combination of image acquisition and preprocessing functions