updated image-sync script