add the function of automatically capturing the image.