image sync script