update preprocess image