make transfer-photos idempotent