add timeout to image snapping
bug fixed