add Sleep for xwd capturing