update the image processing