update the grayscale image when capture multiple times