Repairing seamless pattern vector image